package com.chinanet.service.faultanticipate.imp;


import com.chinanet.entry.faultanticipate.Operation;
import com.chinanet.repository.faultanticipate.OperationRepository;
import com.chinanet.service.faultanticipate.IOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OperationServiceImpl implements IOperationService {
    @Autowired
    private OperationRepository operationRepository;

    @Override
    public Operation init(){
        Operation operation =new Operation();
        operation.setStatus(1);
        operation.setOutput("正在运行");
        return operationRepository.save(operation);
    }
}
